# 需要将图像统一缩放到相同大小
import cv2
img1 = cv2.imread('dog.jpg')
img1=cv2.resize(img1,(240,240),cv2.INTER_CUBIC)
img2 = cv2.imread('pic1.png')
img2=cv2.resize(img2,(240,240),cv2.INTER_CUBIC)
dst = cv2.addWeighted(img1,0.7,img2,0.3,0)
cv2.imshow('dst',dst)
cv2.waitKey(0)
cv2.destroyAllWindows()



